package com.forum.module.blog.controller.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/3 19:56
 */
@Schema(description = "博客管理 - 分类创建/修改 请求视图对象")
public class CategorySaveReqVO {
    @Schema(description = "编号", example = "1024")
    private Long id;

    @Schema(description = "分类名称",example = "汽车")
    @Size(max = 50, message = "分类名称最大不能超过50")
    private String name;

    @Schema(description = "排序值（数值越小排序越靠前）")
    private Long sort;

    public Long getId() {
        return id;
    }

    public CategorySaveReqVO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public CategorySaveReqVO setName(String name) {
        this.name = name;
        return this;
    }

    public Long getSort() {
        return sort;
    }

    public CategorySaveReqVO setSort(Long sort) {
        this.sort = sort;
        return this;
    }
}
